"""
多级继承:
类A继承类B,类B继承类C

类A间接的继承了类C

"""

class C:
   def eat(self):
       print("吃饭")
class B(C):
    def sleep(self):
        print("睡觉")

class A(B):
    pass

a1=A()
a1.sleep()